{% extends 'xadmin/base.html' %}
{% load staticfiles %}
{% load node_tag %}

{% block title %}
    部件管理
{% endblock %}



{% block main %}
    <div class="col-sm-10">
        <form method="POST" class="layui-form" action="">
            {% csrf_token %}
            <div class="tab-content">
                <div class="tab-pane active" id="basic-info"  style="margin:40px;">
                    {% for field in part_form %}

                            <div class="layui-form-item">
                                <label class="layui-form-label" style="width: 125px;">{{ field.label }}</label>
                                <div class="layui-input-block" style="margin-left:160px;">
                                    {{ field }}
                                    <span class="help-block m-b-none">{{ field.errors }}</span>
                                </div>
                            </div>

                    {% endfor %}
                </div>
            </div>

            <div class="col-sm-4 col-sm-offset-2">
                <button class="btn btn-primary" type="submit">保存</button>
                <a class="btn btn-white" href="#" onclick="javascript:history.back(-1);">取消</a>
            </div>
        </form>
    </div>
{% endblock %}

{% block script %}
    <script src="{% static 'xadmin/ueditor/ueditor.config.js'%}"></script>
    <script src="{% static 'xadmin/ueditor/ueditor.all.js'%}"></script>
    <script>




    </script>
{% endblock %}